package com.xyf.sys.mapper;

import com.xyf.sys.domain.UserLogistic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserLogisticMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserLogistic record);

    int insertSelective(UserLogistic record);

    UserLogistic selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserLogistic record);

    int updateByPrimaryKey(UserLogistic record);

    List<UserLogistic> selectUserLogisticList(@Param("userId") String userId);

    void deleteByUserId(@Param("userId") String userId);

    void deleteByDeptId(@Param("deptId") Long deptId);

    List<UserLogistic> selectUserLogisticListByDeptId(@Param("deptId") Long deptId);

    List<UserLogistic> selectAll();
}